package com.sl.au.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.sl.au.entity.Root;

@Entity
@Table(name = "sl_dcms_division")
public class Division extends Root{

	@Column(nullable = true)
	private String divisionName;//区域名称
	
	@Column(nullable = true)
	private String divisionIdentify;//区域编码
	
	@Column(nullable = true)
	private int divisionOrder;//顺序

	@Column(nullable = true)
	private String divisionParent;//父级区域
	
	@Column(nullable = true)
	private String arcGis;//ArcGis对象
	
	@ManyToOne
	@JoinColumn(name = "divisionLevel_id",nullable = true)
	private Option divisionLevel;//区域层级
	
	@Column(name = "iconAddress", nullable = true)
	private String iconAddress;//图标地址
	
	@Column(name = "memo", nullable = true)
	private String memo;//备注
	
	/*******  用于判断是否需要当前编码  ******/
	// 人员
	@Column(nullable = true,columnDefinition="bit(1) default 1 ")
	private boolean userShow = true;
	// 部件
	@Column(nullable = true,columnDefinition="bit(1) default 1 ")
	private boolean partShow = true;
	// 网格
	@Column(nullable = true,columnDefinition="bit(1) default 1 ")
	private boolean gridShow = true;
	// 事件
	@Column(nullable = true,columnDefinition="bit(1) default 1 ")
	private boolean eventShow = true;

	public String getDivisionName() {
		return divisionName;
	}

	public void setDivisionName(String divisionName) {
		this.divisionName = divisionName;
	}

	public String getDivisionIdentify() {
		return divisionIdentify;
	}

	public void setDivisionIdentify(String divisionIdentify) {
		this.divisionIdentify = divisionIdentify;
	}

	public int getDivisionOrder() {
		return divisionOrder;
	}

	public void setDivisionOrder(int divisionOrder) {
		this.divisionOrder = divisionOrder;
	}

	public String getDivisionParent() {
		return divisionParent;
	}

	public void setDivisionParent(String divisionParent) {
		this.divisionParent = divisionParent;
	}

	public String getArcGis() {
		return arcGis;
	}

	public void setArcGis(String arcGis) {
		this.arcGis = arcGis;
	}

	public Option getDivisionLevel() {
		return divisionLevel;
	}

	public void setDivisionLevel(Option divisionLevel) {
		this.divisionLevel = divisionLevel;
	}

	public String getIconAddress() {
		return iconAddress;
	}

	public void setIconAddress(String iconAddress) {
		this.iconAddress = iconAddress;
	}

	public boolean isUserShow() {
		return userShow;
	}

	public void setUserShow(boolean userShow) {
		this.userShow = userShow;
	}

	public boolean isPartShow() {
		return partShow;
	}

	public void setPartShow(boolean partShow) {
		this.partShow = partShow;
	}

	public boolean isGridShow() {
		return gridShow;
	}

	public void setGridShow(boolean gridShow) {
		this.gridShow = gridShow;
	}

	public boolean isEventShow() {
		return eventShow;
	}

	public void setEventShow(boolean eventShow) {
		this.eventShow = eventShow;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

}
